package cn.tedu.lianxi1;

public class Text8 {

    public static void main(String[] args) {
        String	s=new String("hello");
        String t =new String("hello");
        char c [ ] ={'h','e','l','l','o'};
        System.out.println(s.equals(t));
        System.out.println(t.equals(c)) ;
        System.out.println(s==t );
        System.out.println(t.equals (new String("hello")));
        int i = 5;
        do{
            System.out.print(i);
        }while(--i>5);
        System.out.print("finished"+"\n");
        float f=5+5.5F;
        System.out.println(f);
        int a ='a'+ 5;
        System.out.println(a);
        int[] a1;
       int[] a2= new int[]{1, 2, 3};
        StringBuffer sb = new StringBuffer();
        sb.append("hello");
        sb.insert(1, "world");
        //在最后添加
        sb.insert(sb.length(), "!!!");
        System.out.println(sb);

    }


}
